[#ftl]
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>用户详情</title>
<link rel="stylesheet" type="text/css" href="${base}/css/date.css" />
<link rel="stylesheet" type="text/css" href="${base}/css/base.css" />
<link rel="stylesheet" type="text/css" href="${base}/css/form.css" />
<link rel="stylesheet" type="text/css" href="${base}/css/pop.css" />


<script type="text/javascript" src="${base}/commonjs/jquery1.7.2/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="${base}/commonjs/jquery-forms.js"></script>
<script type="text/javascript" src="${base}/commonjs/tab/tabs.js"></script>
<script type="text/javascript">
    
    $(function() {
        // 保存
        $("#butBack").click(function(){
            window.parent.closeArtDialog(); 
        });     
    });
</script>
</head>
<body>
<!-- 主体开始 -->
<div class="dataForm">
    <div class="eva_content_top">
    	<ul id="eva_all">
    		<li><a tab="eva_tab1" class="eva_focus" href="javascript:void(0);">基本信息</a></li>
    		<li><a tab="eva_tab2" class="white" href="javascript:void(0);">用户角色</a></li>
    	</ul>
    </div>
   <div id="eva_tab1" class="eva_tab">
   <form id="dataform" action="user/update" method="post">
		<div class="pop_main">
		<table>
		    [#if bean?exists]
			<input  id="beanId" name="id"   type="hidden"  value="${bean.id!''}"/>
			<tr>
				<td class="pop_td1 tr">账号:</td>
				<td class="tl">		
				${bean.account!''}
				</td>
			</tr>
			<tr>
				<td class="pop_td1 tr">姓名:</dt>
				<td class="tl">		
				${bean.name!''}
				</td>
			</tr>
			<tr>
				<td class="pop_td1 tr">性别:</td>
				<td class="tl">
					[@c.toName  value='${bean.gender!""}' datas="common.sex" /]
				</td class="tr">
			</tr>
			<tr>
				<td class="pop_td1 tr">备注:</td>
				<td class="tl">
					${bean.description!''}
				</td>
				</tr>
			[/#if]
		  </table>
		  <div class="clear"></div>
		</div>
		<div class="pop_btn">
		  <input type="button" id="butBack" class="btn_1" value="返回"/>
		</div>
	</form>
	</div>
	<div id="eva_tab2" class="eva_tab">
		<div class="userole">
		    <div class="mt10"><span   class="required">*</span>用户角色：</div>	
			<dl>			
		   [#if roles??]
			 [#list roles as items]
			   [#if bean.rolesList??]						   													   
			        [#list bean.rolesList as item] [#if item.id==items.id] <dt> ${items.name}</dt>[/#if][/#list]			      
			   [/#if]
		   	[/#list]
		   [/#if]					
			<dl>
		</div>
    </div>
</div> [#--end of dataForm--]
</body>
</html>